Example |
Let's take a closer look at the 'Sphere (fixed gradation)' script which is included with IconEdit Pro:
NAME: Sphere (fixed gradation)
PURPOSE: Draw a perfect sphere (fixed gradation)
The first line tells IconEdit Pro what it should display in the scripts menu. The second line defines what to display when the user shift-clicks the script in the scripts menu.
PALETTENR: 1,1
KEY: Y
PALETTENR: 1,33
These three lines define a color region from the first color to the last color in the first column of the palette.
KEY: +{F5}
KEY: {ENTER}
These two lines resize the icon to 64x64 pixels.
TOOL: 6
PALETTENR: 1,1
DRAG: 32,32,60,60
These three lines draw a black filled circle with it's center at x:32, y:32
TOOL: 7
KEY: {F11}
KEY: %R
KEY: %O
CLICK: 45,45
These lines change to radial gradation and fill the circle with the gradation defined in 2.
TOOL: 2
PALETTENR: 8,33
DRAG: 15,20,20,15
DRAG: 15,21,21,15
DRAG: 15,22,22,15
DRAG: 16,21,21,16
DRAG: 16,22,22,16
DRAG: 17,22,22,17
The lines above draw some white lines in the upper left corner of the circle for the highlight.
KEY: {F1}
KEY: %I
KEY: {END}
KEY: %O
Open the 'Antialiasing' dialog and set the value to it's maximum (10).
KEY: +{F3}
KEY: {ENTER}
Resize the icon to 32x32 pixels.